package com.fenghongzhang.android_function_sharing

import android.annotation.SuppressLint
import android.os.Bundle
import android.widget.Button
import androidx.appcompat.app.AppCompatActivity
import com.fenghongzhang.android_function_sharing.arouter.ARouterUtil
import com.fenghongzhang.android_function_sharing.databinding.ActivityMainBinding


class MainActivity : AppCompatActivity() {
    private lateinit var binding: ActivityMainBinding
    @SuppressLint("MissingInflatedId")
    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        binding = ActivityMainBinding.inflate(layoutInflater)
        setContentView(binding.root)


        binding.btnTest.setOnClickListener{
            ARouterUtil.navigationTo("/app/TestActivity")
        }

       binding.libDialog.setOnClickListener {
            ARouterUtil.navigationTo("/dialog/DialogMainActivity")
        }

        binding.linkage.setOnClickListener {
            ARouterUtil.navigationTo("/fan/LinkageActivity")
        }

        //倒计时
        binding.fzyCountdown.setOnClickListener {
            ARouterUtil.navigationTo("/countdown/Countdown_Activity")
        }

<<<<<<< HEAD
        binding.recyclerBtn.setOnClickListener {
//            ARouterUtil.navigationTo("/recyclerview/login/LoginActivity")
            ARouterUtil.navigationTo("/jetpack/recyclerview")
        }

        binding.listMainWdy.setOnClickListener {
            ARouterUtil.navigationTo("/check/CheckActivity")
=======

        val button = findViewById<Button>(R.id.btn_test)
        button.setOnClickListener {
            ARouterUtil.navigationTo("/app/TestActivity")
        }


        //对话框集合
        val libDialog = findViewById<Button>(R.id.lib_dialog)
        libDialog.setOnClickListener {
            ARouterUtil.navigationTo("/dialog/DialogMainActivity")
>>>>>>> wei
        }
    }
}